import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
//修改密码
import ChangePwd from './views/logininfo/setinformation.vue'
//医生列表
import doctorList from "./views/doctor/doctorlist.vue"
import Examine from "./views/doctor/examine.vue"
//文章列表
import articleList from './views/article/articleList.vue'

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '医生管理',
        iconCls: 'fa fa-user-plus',//图标样式class
        navBarImage:require('./assets/nav-Image/nav-oreder.png'),
        children: [
            { path: '/doctor_list', component: doctorList, name: '医生列表' }
        ]
    },
    {
        path:'/',
        component:Home,
        name:'文章管理',
        iconCls:'fa fa-folder',
        children:[
            {path:'/articleList',component:articleList,name:'文章列表'},
        ]

    },
    // {
    //     path:'/',
    //     component:Home,
    //     name:'个人中心',
    //     iconCls:'fa fa-address-book',
    //     navBarImage:require('./assets/nav-Image/nav-set.png'),
    //     children:[
    //         {path:'/changePwd',component: ChangePwd,name:'修改登录密码'}
    //     ]
    // },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }

];

export default routes; 